import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { viteMockServe } from "vite-plugin-mock";
import { visualizer } from "rollup-plugin-visualizer";
// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "@": "/src",
    },
  },
  plugins: [
    vue(),
    viteMockServe({
      mockPath: "./mock/",
    }),
    visualizer({ open: false }),
  ],
  base: "/",
  server: {
    host: "0.0.0.0",
  },
});
